<?	session_start(); 
	if(isset($_SESSION['id']) & isset($_SESSION['pass']))
	{
	require("koneksi.php");
	$kode=$_GET["kode"];
	$query=mysql_query("select * from informasi where kode_inf='$kode'");
	$row=mysql_fetch_row($query);
	
?>	

<form method="GET" action="edit_inf.php">
	<table>
		<tr>
			<td colspan="6">Menu Edit Informasi</td>
		</tr>
		<tr>
			<td>Kode</td>
			<td>:</td>
			<td><input name="kode" type="text" value="<? echo "$row[0]"?>"></td>
		</tr>
		<tr>
			<td>Tgl Keluar</td>
			<td>:</td>
			<td><input name="tgl" type="text" value="<? echo "$row[1]"?>"></td>
		</tr>
		<tr>
			<td>Isi</td>
			<td>:</td>
			<td><textarea name="isi"><? echo "$row[2]";?></textarea></td>
		</tr>
		<tr>
			<td>Author</td>
			<td>:</td>
			<td><input name="author" type="text" value="<? echo "$row[3]"?>"></td>
		</tr>
		<tr>
			<td colspan="2"><input name="simpan" type="submit" id="simpan" value="Save"></td>
			<td><input name="reset" type="reset" id="reset" value="Reset"></td>
		</tr>
		
	</table>
	<b>Susunan Tanggal : YYYY-MM-DD</b><br>
	
	<a href="menu_informasi.php">Back To Menu Informasi</a>
	<br>
	<a href="menu_admin.php">Back to Menu Admin</a>
</form>
<? 
	}
	else
	echo "Silahkan <a href='index.php'>Login</a> dulu.";
?>
